package com.glsc.ngateway.ldap.service;

import com.glsc.ngateway.common.base.domain.mysql.gateway.ldap.UserVisitFlow;
import com.glsc.ngateway.common.base.repo.mysql.gateway.ldap.LdapUserFlowRepo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.validation.constraints.NotNull;

@Service
public class LdapUserFlowService {

    @Resource
    private LdapUserFlowRepo ldapUserFlowRepo;

    public void save(@NotNull UserVisitFlow uvf) {
        ldapUserFlowRepo.save(uvf);
    }

    public void updateSystemId(String systemId, String token) {
        ldapUserFlowRepo.updateSystemId(systemId, token);
    }

    public void delayExpireTime(long parseLong, String token) {
        ldapUserFlowRepo.delayExpireTime(parseLong, token);
    }
}
